Optimal. Leaf size=82 \[ -\frac {2 \sqrt {e} \tanh ^{-1}\left (\frac {(e+2 f x) \sqrt {b d-a e}}{\sqrt {e} \sqrt {b e-4 a f} \sqrt {d+e x+f x^2}}\right )}{\sqrt {b d-a e} \sqrt {b e-4 a f}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 82, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.065, Rules used = {982, 208} \[ -\frac {2 \sqrt {e} \tanh ^{-1}\left (\frac {(e+2 f x) \sqrt {b d-a e}}{\sqrt {e} \sqrt {b e-4 a f} \sqrt {d+e x+f x^2}}\right )}{\sqrt {b d-a e} \sqrt {b e-4 a f}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 208
Rule 982
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {d+e x+f x^2} \left (a+b x+\frac {b f x^2}{e}\right )} \, dx &=-\left ((2 e) \operatorname {Subst}\left (\int \frac {1}{e (b e-4 a f)-(b d-a e) x^2} \, dx,x,\frac {e+2 f x}{\sqrt {d+e x+f x^2}}\right )\right )\\ &=-\frac {2 \sqrt {e} \tanh ^{-1}\left (\frac {\sqrt {b d-a e} (e+2 f x)}{\sqrt {e} \sqrt {b e-4 a f} \sqrt {d+e x+f x^2}}\right )}{\sqrt {b d-a e} \sqrt {b e-4 a f}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.39, size = 178, normalized size = 2.17 \[ \frac {\sqrt {e} \left (\tanh ^{-1}\left (\frac {-\sqrt {e} (e+2 f x) \sqrt {b e-4 a f}-\sqrt {b} \left (e^2-4 d f\right )}{4 f \sqrt {b d-a e} \sqrt {d+x (e+f x)}}\right )+\tanh ^{-1}\left (\frac {\sqrt {b} \left (e^2-4 d f\right )-\sqrt {e} (e+2 f x) \sqrt {b e-4 a f}}{4 f \sqrt {b d-a e} \sqrt {d+x (e+f x)}}\right )\right )}{\sqrt {b d-a e} \sqrt {b e-4 a f}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.71, size = 1079, normalized size = 13.16 \[ \left [\frac {1}{2} \, \sqrt {\frac {e}{b^{2} d e - a b e^{2} - 4 \, {\left (a b d - a^{2} e\right )} f}} \log \left (\frac {8 \, b^{2} d^{2} e^{4} - 8 \, a b d e^{5} + a^{2} e^{6} + 16 \, a^{2} d^{2} e^{2} f^{2} + {\left (b^{2} e^{4} f^{2} + 16 \, {\left (b^{2} d^{2} - 8 \, a b d e + 8 \, a^{2} e^{2}\right )} f^{4} + 8 \, {\left (3 \, b^{2} d e^{2} - 4 \, a b e^{3}\right )} f^{3}\right )} x^{4} + 2 \, {\left (b^{2} e^{5} f + 16 \, {\left (b^{2} d^{2} e - 8 \, a b d e^{2} + 8 \, a^{2} e^{3}\right )} f^{3} + 8 \, {\left (3 \, b^{2} d e^{3} - 4 \, a b e^{4}\right )} f^{2}\right )} x^{3} + {\left (b^{2} e^{6} - 32 \, {\left (3 \, a b d^{2} e - 4 \, a^{2} d e^{2}\right )} f^{3} + 16 \, {\left (3 \, b^{2} d^{2} e^{2} - 13 \, a b d e^{3} + 10 \, a^{2} e^{4}\right )} f^{2} + 2 \, {\left (16 \, b^{2} d e^{4} - 19 \, a b e^{5}\right )} f\right )} x^{2} - 8 \, {\left (4 \, a b d^{2} e^{3} - 3 \, a^{2} d e^{4}\right )} f + 2 \, {\left (4 \, b^{2} d e^{5} - 3 \, a b e^{6} - 16 \, {\left (3 \, a b d^{2} e^{2} - 4 \, a^{2} d e^{3}\right )} f^{2} + 8 \, {\left (2 \, b^{2} d^{2} e^{3} - 5 \, a b d e^{4} + 2 \, a^{2} e^{5}\right )} f\right )} x - 4 \, {\left (2 \, b^{3} d^{2} e^{4} - 3 \, a b^{2} d e^{5} + a^{2} b e^{6} - 2 \, {\left (16 \, {\left (a b^{2} d^{2} - 3 \, a^{2} b d e + 2 \, a^{3} e^{2}\right )} f^{4} - 4 \, {\left (b^{3} d^{2} e - 4 \, a b^{2} d e^{2} + 3 \, a^{2} b e^{3}\right )} f^{3} - {\left (b^{3} d e^{3} - a b^{2} e^{4}\right )} f^{2}\right )} x^{3} + 16 \, {\left (a^{2} b d^{2} e^{2} - a^{3} d e^{3}\right )} f^{2} - 3 \, {\left (16 \, {\left (a b^{2} d^{2} e - 3 \, a^{2} b d e^{2} + 2 \, a^{3} e^{3}\right )} f^{3} - 4 \, {\left (b^{3} d^{2} e^{2} - 4 \, a b^{2} d e^{3} + 3 \, a^{2} b e^{4}\right )} f^{2} - {\left (b^{3} d e^{4} - a b^{2} e^{5}\right )} f\right )} x^{2} - 4 \, {\left (3 \, a b^{2} d^{2} e^{3} - 4 \, a^{2} b d e^{4} + a^{3} e^{5}\right )} f + {\left (b^{3} d e^{5} - a b^{2} e^{6} + 32 \, {\left (a^{2} b d^{2} e - a^{3} d e^{2}\right )} f^{3} - 40 \, {\left (a b^{2} d^{2} e^{2} - 2 \, a^{2} b d e^{3} + a^{3} e^{4}\right )} f^{2} + 2 \, {\left (4 \, b^{3} d^{2} e^{3} - 11 \, a b^{2} d e^{4} + 7 \, a^{2} b e^{5}\right )} f\right )} x\right )} \sqrt {f x^{2} + e x + d} \sqrt {\frac {e}{b^{2} d e - a b e^{2} - 4 \, {\left (a b d - a^{2} e\right )} f}}}{b^{2} f^{2} x^{4} + 2 \, b^{2} e f x^{3} + 2 \, a b e^{2} x + a^{2} e^{2} + {\left (b^{2} e^{2} + 2 \, a b e f\right )} x^{2}}\right ), -\sqrt {-\frac {e}{b^{2} d e - a b e^{2} - 4 \, {\left (a b d - a^{2} e\right )} f}} \arctan \left (-\frac {{\left (2 \, b d e^{2} - a e^{3} - 4 \, a d e f + {\left (b e^{2} f + 4 \, {\left (b d - 2 \, a e\right )} f^{2}\right )} x^{2} + {\left (b e^{3} + 4 \, {\left (b d e - 2 \, a e^{2}\right )} f\right )} x\right )} \sqrt {f x^{2} + e x + d} \sqrt {-\frac {e}{b^{2} d e - a b e^{2} - 4 \, {\left (a b d - a^{2} e\right )} f}}}{2 \, {\left (2 \, e f^{2} x^{3} + 3 \, e^{2} f x^{2} + d e^{2} + {\left (e^{3} + 2 \, d e f\right )} x\right )}}\right )\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 3.04, size = 847, normalized size = 10.33 \[ \frac {\sqrt {-4 \, a b d f e + b^{2} d e^{2} + 4 \, a^{2} f e^{2} - a b e^{3}} \log \left ({\left | -4 \, {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )}^{2} b d f^{2} + 8 \, {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )}^{2} a f^{2} e - 4 \, {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )} b d f^{\frac {3}{2}} e + 4 \, b d^{2} f^{2} - {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )}^{2} b f e^{2} + 8 \, {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )} a f^{\frac {3}{2}} e^{2} + 4 \, \sqrt {-4 \, a b d f e + b^{2} d e^{2} + 4 \, a^{2} f e^{2} - a b e^{3}} {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )}^{2} f^{\frac {3}{2}} - 3 \, b d f e^{2} - {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )} b \sqrt {f} e^{3} + 4 \, \sqrt {-4 \, a b d f e + b^{2} d e^{2} + 4 \, a^{2} f e^{2} - a b e^{3}} {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )} f e + 2 \, a f e^{3} + \sqrt {-4 \, a b d f e + b^{2} d e^{2} + 4 \, a^{2} f e^{2} - a b e^{3}} \sqrt {f} e^{2} \right |}\right )}{4 \, a b d f - b^{2} d e - 4 \, a^{2} f e + a b e^{2}} - \frac {\sqrt {-4 \, a b d f e + b^{2} d e^{2} + 4 \, a^{2} f e^{2} - a b e^{3}} \log \left ({\left | -4 \, {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )}^{2} b d f^{2} + 8 \, {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )}^{2} a f^{2} e - 4 \, {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )} b d f^{\frac {3}{2}} e + 4 \, b d^{2} f^{2} - {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )}^{2} b f e^{2} + 8 \, {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )} a f^{\frac {3}{2}} e^{2} - 4 \, \sqrt {-4 \, a b d f e + b^{2} d e^{2} + 4 \, a^{2} f e^{2} - a b e^{3}} {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )}^{2} f^{\frac {3}{2}} - 3 \, b d f e^{2} - {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )} b \sqrt {f} e^{3} - 4 \, \sqrt {-4 \, a b d f e + b^{2} d e^{2} + 4 \, a^{2} f e^{2} - a b e^{3}} {\left (\sqrt {f} x - \sqrt {f x^{2} + x e + d}\right )} f e + 2 \, a f e^{3} - \sqrt {-4 \, a b d f e + b^{2} d e^{2} + 4 \, a^{2} f e^{2} - a b e^{3}} \sqrt {f} e^{2} \right |}\right )}{4 \, a b d f - b^{2} d e - 4 \, a^{2} f e + a b e^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.06, size = 491, normalized size = 5.99 \[ -\frac {e \ln \left (\frac {-\frac {2 \left (a e -b d \right )}{b}+\frac {\sqrt {-\left (4 a f -b e \right ) b e}\, \left (x -\frac {-b e +\sqrt {-\left (4 a f -b e \right ) b e}}{2 b f}\right )}{b}+2 \sqrt {-\frac {a e -b d}{b}}\, \sqrt {\left (x -\frac {-b e +\sqrt {-\left (4 a f -b e \right ) b e}}{2 b f}\right )^{2} f +\frac {\sqrt {-\left (4 a f -b e \right ) b e}\, \left (x -\frac {-b e +\sqrt {-\left (4 a f -b e \right ) b e}}{2 b f}\right )}{b}-\frac {a e -b d}{b}}}{x -\frac {-b e +\sqrt {-\left (4 a f -b e \right ) b e}}{2 b f}}\right )}{\sqrt {-\left (4 a f -b e \right ) b e}\, \sqrt {-\frac {a e -b d}{b}}}+\frac {e \ln \left (\frac {-\frac {2 \left (a e -b d \right )}{b}-\frac {\sqrt {-\left (4 a f -b e \right ) b e}\, \left (x +\frac {b e +\sqrt {-\left (4 a f -b e \right ) b e}}{2 b f}\right )}{b}+2 \sqrt {-\frac {a e -b d}{b}}\, \sqrt {\left (x +\frac {b e +\sqrt {-\left (4 a f -b e \right ) b e}}{2 b f}\right )^{2} f -\frac {\sqrt {-\left (4 a f -b e \right ) b e}\, \left (x +\frac {b e +\sqrt {-\left (4 a f -b e \right ) b e}}{2 b f}\right )}{b}-\frac {a e -b d}{b}}}{x +\frac {b e +\sqrt {-\left (4 a f -b e \right ) b e}}{2 b f}}\right )}{\sqrt {-\left (4 a f -b e \right ) b e}\, \sqrt {-\frac {a e -b d}{b}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{\sqrt {f\,x^2+e\,x+d}\,\left (a+b\,x+\frac {b\,f\,x^2}{e}\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ e \int \frac {1}{a e \sqrt {d + e x + f x^{2}} + b e x \sqrt {d + e x + f x^{2}} + b f x^{2} \sqrt {d + e x + f x^{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________